﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using MoonLight.LibCommon;

namespace MapleLeaf
{
    class Program
    {
        static void Main(string[] args)
        {
            Logger.SetLogPath();
            Console.WriteLine("MapleLeaf start...");
            Console.WriteLine("input remote ip:");
            string ip = Console.ReadLine();
            TcpClient client = new TcpClient(ip);
            Thread thread = new Thread(new ThreadStart(client.Run));
            thread.Start();
            thread.Join();
            Console.WriteLine("interact thread exit, press any key to exit...");
            Console.ReadKey();
        }
    }
}
